package com.mall.user;
import com.mall.commons.result.ResponseData;
import com.mall.user.dto.*;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 *  ciggar
 * create-date: 2019/7/30-下午11:47
 * 会员服务
 */
public interface IMemberService {

    /**
     * 根据用户id查询用户会员信息
     * @param request
     * @return
     */
    QueryMemberResponse queryMemberById(QueryMemberRequest request);

    /**
     * 修改用户头像
     * @param request
     * @return
     */
    HeadImageResponse updateHeadImage(HeadImageRequest request);

    /**
     * 更新信息
     * @param request
     * @return
     */
    UpdateMemberResponse updateMember(UpdateMemberRequest request);

    /**
     * 用户注册
     * @param request
     * @return
     */
    ResponseData addMember(UserRegisterRequest request);

    /**
     * 用户登录
     * @param userLoginRequest
     * @return
     */
    UserLoginResponse queryMemberByUserNameAndPassword(UserLoginRequest userLoginRequest);

    /**
     * 登录验证
     * @param token
     * @return
     */
    ResponseData queryMemberByToken(String token);

    ResponseData userVerify(String username);

    boolean isVerify(String userName);
}
